package com.feng.chatCient.init;

import com.feng.server.ChatServer;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class chatServerInit implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args){
        System.out.println("springboot容器加载完成后，启动chatServer");
        ChatServer chatServer = new ChatServer();
        chatServer.start();
}
}
